<?php
$oUsers = UserHandler::getUsers();
$iChangers = JobHandler::getUsersWithAccess('mission', 'write');
?>
<div class="hidden" id="layer_mission_rush" style="visibility: visible;">
<form action="index.php" method="post" name="form_mission_rush">
<input type="hidden" name="sAction" value="mission-rush">
<input type="hidden" name="sView" value="job-view">
<input type="hidden" name="iMissionID" value="<?php print $_REQUEST['iMissionID'] ?>">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Remind of task') ?></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Message') ?>:</td>
		<td class="fieldvalue"><input type="text" name="sMessage" id="focus_mission_rush"></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Type') ?>:</td>
		<td class="fieldvalue">
			<input type="radio" name="sType" value="check" checked><?php print msg('Question') ?><br>
			<input type="radio" name="sType" value="hurry"><?php print msg('Reminder') ?><br>
		</td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Send to') ?>:</td>
		<td class="fieldvalue">
<?php
foreach ($iChangers as $iThisChanger)
{
	if ($iThisChanger != $_SESSION['rid'])
	{
		echo '<input type="checkbox" name="iUsers[]" value="'.$iThisChanger.'">'.$oUsers[$iThisChanger]->sUser.'<br>';
	}
}
?>
		</td>
	</tr>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="<?php print msg('OK') ?>">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="layerHide('layer_mission_rush');">
		</td>
	</tr>
</table>
</form>
</div>
